package com.ruoyi.system.module.deptSynchron.service.impl;

import com.ruoyi.system.api.domain.SysDept;
import com.ruoyi.system.module.deptSynchron.mapper.DeptSyncMapper;
import com.ruoyi.system.module.deptSynchron.service.IDeptSyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 部门管理 服务实现
 *
 * @author kokor
 */
@Service
public class DeptSyncServiceImpl implements IDeptSyncService {
    @Autowired
    private DeptSyncMapper deptSyncMapper;

    @Override
    public List<String> selectEmailList() {
        return deptSyncMapper.selectEmailList();
    }

    @Override
    public Long selectIdByEmail(String email) {
        return deptSyncMapper.selectIdByEmail(email);
    }

    @Override
    public void insertDeptNew(SysDept sysDept) {
        deptSyncMapper.insertDeptNew(sysDept);
    }

    @Override
    public void deleteDeptByEmail(String email) {
        deptSyncMapper.deleteDeptByEmail(email);
    }
}
